Skip to content

[AI-FSSDK] [FSSDK-12418] Remove experiment type validation from config parsing#602

Merged
jaeopt merged 1 commit intomasterfrom
ai/farhananjum-opti/FSSDK-12418-remove-type-validation
Apr 15, 2026
Merged

[AI-FSSDK] [FSSDK-12418] Remove experiment type validation from config parsing#602
jaeopt merged 1 commit intomasterfrom
ai/farhananjum-opti/FSSDK-12418-remove-type-validation

Conversation

@FarhanAnjum-opti
Copy link
Copy Markdown
Contributor

@FarhanAnjum-opti FarhanAnjum-opti commented Apr 3, 2026

Summary

Removes experiment type validation from config parsing to ensure forward compatibility. Previously, all four config parsers validated the experiment "type" field against a known set of values and rejected the entire datafile if an unknown type was encountered, which would break existing SDK versions when new experiment types are added in the future.

Changes

  • Removed type validation blocks from all four config parsers (JsonConfigParser, JsonSimpleConfigParser, DatafileGsonDeserializer, DatafileJacksonDeserializer)
  • Unknown experiment types are now silently accepted and stored as-is
  • Added test verifying unknown experiment types are accepted during config parsing

Jira Ticket

FSSDK-12418

Copy link
Copy Markdown
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jaeopt jaeopt merged commit bde8d3e into master Apr 15, 2026
17 checks passed
@jaeopt jaeopt deleted the ai/farhananjum-opti/FSSDK-12418-remove-type-validation branch April 15, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants